package com.ninong.ker.admin.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统角色
 * 
 * @author cmd
 */
@Data
@TableName("fw_role")
@AllArgsConstructor
@NoArgsConstructor
public class Role implements  Serializable {
	/**
	* 
	*/
	private static final long serialVersionUID = -6014721059245988699L;

	/**
	 * 
	 */
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	
	/**
	 * 描述
	 */
	private String description;

	/**
	 * 角色
	 */
	private String name;
	
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 租户id
	 */
	@TableField("tenant_id")
	private String tenantId;

	public Role(String name, String tenantId) {
		this.name = name;
		this.tenantId = tenantId;
	}
}
